-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Ctypes] TVB-2719 Use ctypes instead of cython #40
base: trunk
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this first step towards making the gdist module easier to package and distribute. I would approve and let you choose which of the review points to follow up on, though some will be naturally obligatory, such as using the right DLL extension on different platforms.
A last minor comment: I don't see why C++14 is needed, and it would be easier to not worry about MSVC if you were using C++11 or earlier. |
@maedoc Thanks! The PR is still in WIP and I am working on it.
I am using range-based for loop (which can easily be changed to standard for loop), so added c++14 to command line arguments. |
Codecov Report
@@ Coverage Diff @@
## trunk #40 +/- ##
========================================
Coverage ? 81.96%
========================================
Files ? 4
Lines ? 122
Branches ? 0
========================================
Hits ? 100
Misses ? 22
Partials ? 0 Continue to review full report at Codecov.
|
These are cosmetics, but:
|
Not really sure why macOS and Windows jobs are failing sometimes with segmentation fault. |
|
Lia's previous comment about comparing versions is very pertinent. I would also recommend some "synthetic" geometry like a circle and compare distances to known geodesic arc distances. If you are feeling curious you could even implement something more interesting such as a surface with a known path integral e.g. https://math.stackexchange.com/questions/45089/what-is-the-length-of-a-sine-wave-from-0-to-2-pi no obligation though really :) |
- pip install pytest~=3.6.1 | ||
- pytest | ||
- pip3 install nose2 nose2[coverage_plugin]>=0.6.5 | ||
- nose2 --with-coverage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have a preference to keep using pytest, for consistency with the other TVB builds.
Anyway, nose does not solve the seg fault issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure but it appears to be a pytest issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why you say it is pytest?
the build are still failing, and tests are not really execute in the latest Travis run.... am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enthought/comtypes#204 I got this same error. The current failures are due to something else. I am still investigating and will report you back if nose actually fixes the issue.
37dec0c
to
690db6e
Compare
Closes #11 & closes #36